home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1180_grouping_interface_objects.rtf < prev    next >
Text File  |  1995-06-12  |  1KB  |  19 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fmodern Ohlfs;}
  2. \paperw13040
  3. \paperh10200
  4. \margl120
  5. \margr120
  6. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q:  In the process of designing an interface, I placed two buttons and one box in my window.  I sent the box to the back of the window and then resized it so it would be under the buttons.  However, the three objects move independently and I want them to move together!\
  7. \
  8. A:  The geometrical superposition of a Box and other objects in the window editor does not imply the creation of a view hierarchy even if it looks that way.  To create an actual hierarchy, delete the existing box, select the other objects, and choose "Group" from the Layout menu.  This creates a new Box as the superview of those objects.  Once you have created a view hierarchy, the objects move together as a unit. \
  9. \
  10. You can select one of the objects in the box by double-clicking it.  Notice that the Box editor is opened (there is a dark gray border around the Box) and you can move the objects around inside, but not out of, the boundaries of the box.\
  11. \
  12. QA154\
  13. \
  14.  
  15. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0\cf0 Valid for 1.0, 2.0, 3.0, 3.1\
  16.  
  17. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0\cf0 \
  18.  
  19.